package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"lot_admin_api/internal/model"
)

// AddEquipmentReq  添加设备
type AddEquipmentReq struct {
	g.Meta `path:"/equipment/add" tags:"设备模块" method:"post" summary:"添加设备"`
	model.EquipmentInfoRes
}

// EditEquipmentReq  更新设备
type EditEquipmentReq struct {
	g.Meta `path:"/equipment/edit" tags:"设备模块" method:"post" summary:"更新设备基本信息"`
	model.EquipmentIdAndInfoRes
}

// DeleteEquipmentReq  删除设备
type DeleteEquipmentReq struct {
	g.Meta `path:"/equipment/delete" tags:"设备模块" method:"delete" summary:"删除设备"`
	model.EquipmentIdRes
}

// EquipmentInfoReq  通过id获取设备详情
type EquipmentInfoReq struct {
	g.Meta `path:"/equipment/info" tags:"设备模块" method:"get" summary:"通过id获取设备详情"`
	model.EquipmentIdRes
}

// EquipmentListReq  获取设备列表
type EquipmentListReq struct {
	g.Meta `path:"/equipment/list" tags:"设备模块" method:"get" summary:"获取设备列表"`
	model.SearchEquipmentListRes
}

// EditEquipmentPortStatusReq  修改设备端口的状态
type EditEquipmentPortStatusReq struct {
	g.Meta `path:"/equipment/port/status" tags:"设备模块" method:"post" summary:"修改设备端口的状态"`
	*model.EditEquipmentPortStatus
}
